package org.yamikaze.unit.test.mock;

/**
 * @author qinluo
 * @version 1.0.0
 * @date 2020-04-17 10:35
 */
class Utils {

    static boolean isBlank(String value) {
        return value == null || value.trim().isEmpty();
    }

    static String replace(String value, String replace, String replacement) {
        if (isBlank(value) || replace == null || replacement == null) {
            return value;
        }

        return value.replace(replace, replacement);
    }
}
